<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>window-open方法</title>
    <script type="text/javascript">
        function method01(){
            window.open('http://www.baidu.com');
        }

        function method02(){
            window.open('js01_01.html','','width=200,height=100');
        }


    </script>

</head>
<body>
<button onclick="method01()">打开窗口01</button><br>
<button onclick="method02()">打开窗口02</button><br>

</body>
</html>